
package com.craterhill.java.ems.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ems.common.beans.State;
import com.craterhill.java.ems.dao.StateDao;

@Repository
public class StateDaoImpl extends AbstractDao<State> implements StateDao {

	@Autowired
	public StateDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	public List<State> findByCountry(final int countryId) {
		return super.findMultipleObject(FIND_STATE_BY_COUNTRY, new StateExtractor(), countryId);
	}

	public List<State> findAll() {
		return null;
	}

	public int save(final State state) {
		return 0;
	}

	public boolean update(final State state) {
		return false;
	}

	public boolean remove(final Integer... stateIds) {
		return false;
	}

	public State find(final int stateId) {
		return null;
	}
}
